package com.work.washer.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName repair
 */
@TableName(value ="repair")
@Data
public class Repair implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 设备id
     */
    private Integer machineId;

    /**
     * 状态：1保修中，2已处理
     */
    @Schema(title = "状态：1保修中，2已处理")
    private Integer status;

    /**
     * 故障类型
     */
    private Integer type;

    /**
     * 
     */
    private String remark;

    private String image;
    @Schema(title = "维修员ID")
    private Integer sysUserId;

    @Schema(title = "维修备注")
    private String sysUserRemark;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @TableField(exist = false)
    private Machine machine;



}